﻿using System;

namespace XuanFe.AppLaunch.ETerm
{
    public class ETermFlight
    {
        /// <summary>
        /// 航空公司编码
        /// </summary>
        public string Airline { get; set; }
        /// <summary>
        /// 航班号，包括航空公司编码
        /// </summary>
        public string FlightNo { get; set; }
        /// <summary>
        /// 舱位
        /// </summary>
        public string Berth { get; set; }
        /// <summary>
        /// 出发时间，yyyy-MM-dd HH:mm
        /// </summary>
        public DateTime DepartureTime { get; set; }
        /// <summary>
        /// 达到时间，yyyy-MM-dd HH:mm
        /// </summary>
        public DateTime ArrivalTime { get; set; }
        /// <summary>
        /// 出发城市编码
        /// </summary>
        public string DepartureCity { get; set; }
        /// <summary>
        /// 到达城市编码
        /// </summary>
        public string ArrivalCity { get; set; }
        public override string ToString()
        {
            return string.Format("航空公司={0}，航班号={1}，舱位={2}，出发时间={3}，达到时间={4}，出发城市={5}，到达城市={6}", this.Airline, this.FlightNo, this.Berth, this.DepartureTime.ToString("yyyy-MM-dd HH:mm"), this.ArrivalTime.ToString("yyyy-MM-dd HH:mm"), this.DepartureCity, this.ArrivalCity);
        }
    }
}
